function maximumWealth(accounts: number[][]): number {
 let asset: any = [];
 if(accounts.length === 0){
    return 0
 }
 for( let i = 0; i<accounts.length;i++ ){
    asset[i] = 0;
 }
 for(let i = 0 ;i<accounts.length;i++){
     console.log(accounts[i]);
    for(let j = 0 ; j < accounts[i].length;j++){
        console.log(accounts[i][j]);
        asset[i] += accounts[i][j];
    }
 }
//  asset = asset.sort();
let max = Math.max.apply(null, asset)
console.log(asset);
 return max;
};
// let accounts = [[1,2,3],[3,2,1]];
let accounts = [[1,5],[7,3],[3,5]];

console.log(maximumWealth(accounts));